<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      div {
        height: 300px;
        background-color: gray;
      }
      div:target {
        background-color: green;
      }
    </style>
  </head>
  <body>
    <a href="#one">查看第1个</a>
    <a href="#two">查看第2个</a>
    <a href="#three">查看第3个</a>
    <a href="#four">查看第4个</a>
    <a href="#five">查看第5个</a>
    <a href="#six">查看第6个</a>
    <div id="one">第1个</div>
    <br />
    <div id="two">第2个</div>
    <br />
    <div id="three">第3个</div>
    <br />
    <div id="four">第4个</div>
    <br />
    <div id="five">第5个</div>
    <br />
    <div id="six">第6个</div>
    <br />
  </body>
</html>
